package com.whzjkj.gateway.server.processor.command;

import com.whzjkj.gateway.constant.JT808Constant;
import com.whzjkj.gateway.server.processor.AbstractMessageProcessor;
import com.whzjkj.gateway.vo.PackageData;
import org.springframework.stereotype.Component;

/**
 * @description: 位置信息汇报
 * @author: Mr.Hu
 * @create: 2018-11-02 16:55
 **/
@Component
public class CMD0200 extends AbstractMessageProcessor {

    /**
     * 处理终端消息
     * @param data
     * @throws Exception
     */
    @Override
    public void processTerminalMessage(PackageData data) throws Exception {
        //调用平台统一应答消息
        super.serverCommonRespond(data);

    }

    /**
     * 验证消息是否支持
     * @param data
     * @return
     */
    @Override
    public boolean support(PackageData data) {
        return data.getMessageHeader().getMessageId()== JT808Constant.CMD_TERMINAL_0200;
    }
}
